
package egovframework.home.web;

import java.util.List;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import egovframework.com.bean.EquipVO;
import egovframework.equip.service.EquipService;
import egovframework.rte.psl.dataaccess.util.EgovMap;

/**
 * <pre>
 * egovframework.home.web 
 *    └ HomeEquipController.java
 * 
 * </pre>
 * @date : 2014. 9. 25. 오후 2:39:40
 * @version : 
 * @author : nimbi 
 */
@Controller
public class HomeEquipController {
	
	@Resource(name = "equipService")
	private EquipService equipService;
	
	@RequestMapping(value = "/EquipList.do")
	public String getEquipList(
			HttpServletRequest request,
			EquipVO equipVO,
			Model model
	) {
		System.out.println("controller");
		System.out.println(equipVO.toString());
		
		List<?> equipList = equipService.selectEquipList(equipVO);
		model.addAttribute("equipList", equipList);
		return "/Home/equip/equipList";
	}
}
